package lab03.test01;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) {
       String path="G:\\hello.text";
       BufferedWriter writer=null;
       try{
           writer=new BufferedWriter(new FileWriter(path));

           writer.write("hello,world!");
           writer.newLine();

           writer.write("123456");
           writer.newLine();

           writer.write("bye!!!");

       } catch (IOException e) {
           e.printStackTrace();
       }finally {
           
       }
    }
}
